package com.zjdiepu.www.biz.dh;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zjdiepu.www.base.core.BaseService;
import com.zjdiepu.www.dao.dh.OverdueMapper;
import com.zjdiepu.www.ibiz.dh.IOverdueService;
import com.zjdiepu.www.model.dh.dto.DhOverdue;
import com.zjdiepu.www.model.dh.dto.DhOverdueList;
import com.zjdiepu.www.model.dh.ext.DhOverdueExt;
import com.zjdiepu.www.model.dh.vo.DhOverdueVo;
import com.zjdiepu.www.model.dh.vo.YwCommonInfo;
import com.zjdiepu.www.model.dh.vo.YwOtherInfoVo;
import com.zjdiepu.www.model.zx.dto.ZxQueryCreditApplySub;
@Service
public class OverdueServiceImpl extends BaseService implements IOverdueService{

	@Autowired
	private OverdueMapper overdueMapper;
	@Override
	public int countByExt(DhOverdueExt overdueListExt) {
		
		return overdueMapper.countByExt(overdueListExt);
	}

	@Override
	public List<DhOverdueVo> selectByExt(DhOverdueExt overdueListExt) {
		return overdueMapper.selectByExt(overdueListExt);
	}

	@Override
	public void insert(List<DhOverdue> listDhOverdue) {
		
		overdueMapper.insert(listDhOverdue);
	}

	@Override
	public void batchDelete(List<String> lstr) {
		overdueMapper.batchDelete(lstr);
	}

	@Override
	public List<YwOtherInfoVo> selectMulitList(String busiId) {
		return overdueMapper.selectMulitList(busiId);
	}

	@Override
	public List<ZxQueryCreditApplySub> selectZxCreditByBusiId(String busiId) {
		return overdueMapper.selectZxCreditByBusiId(busiId);
	}

	@Override
	public YwCommonInfo selectInfo(String busiId) {
		return overdueMapper.selectInfo(busiId);
	}

	@Override
	public void insertBatch(List<DhOverdueList> listDhOverdue) {
		overdueMapper.insertBatch(listDhOverdue);
	}

	@Override
	public void deleteByBankCode(String bankCode) {
		overdueMapper.deleteByBankCode(bankCode);
		
	}
}
